package com.atguigu.yygh.common.exception;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author:ahang
 * @create:2022-08-23 15:30
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class YyghException extends RuntimeException {
    @ApiModelProperty(value = "自定义状态码")
    private Integer code;

    @ApiModelProperty(value = "自定义状态信息")
    private String msg;
}
